package com.micro.school.edu.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.micro.school.edu.domain.SchoolCampus;
import com.micro.school.edu.domain.vo.SchoolCampusVo;
import com.micro.school.system.api.domain.vo.SchoolCampusVos;
import org.apache.ibatis.annotations.Param;

/**
 * 校区信息Mapper接口
 *
 * @author rakic
 * @date 2025-08-06
 */
public interface SchoolCampusMapper extends BaseMapper<SchoolCampus>
{
    /**
     * 查询校区信息
     *
     * @param id 校区信息主键
     * @return 校区信息
     */
    public SchoolCampusVo selectSchoolCampusById(Long id);

    /**
     * 查询校区信息列表
     *
     * @param schoolCampusVo 校区信息
     * @return 校区信息集合
     */
    public List<SchoolCampusVo> selectSchoolCampusList(SchoolCampusVo schoolCampusVo);

    /**
     * 新增校区信息
     *
     * @param schoolCampus 校区信息
     * @return 结果
     */
    public int insertSchoolCampus(SchoolCampus schoolCampus);

    /**
     * 修改校区信息
     *
     * @param schoolCampus 校区信息
     * @return 结果
     */
    public int updateSchoolCampus(SchoolCampus schoolCampus);

    /**
     * 删除校区信息
     *
     * @param id 校区信息主键
     * @return 结果
     */
    public int deleteSchoolCampusById(Long id);

    /**
     * 批量删除校区信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSchoolCampusByIds(Long[] ids);

    int updateSchoolCampusInfo(List<Long> ids);

    SchoolCampusVos selectSchoolCampusByIds(@Param("id")Long id,@Param("tenantId")String tenantId);

    List<SchoolCampusVos> selectSchoolCampusLists(SchoolCampusVos schoolCampusVos);

    List<SchoolCampus> selectSchoolCampusByName(@Param("campusName")String campusName,@Param("tenantId")String tenantId);

    List<String> getAllCampusIdVos(SchoolCampusVos schoolCampusVos);
}
